import store from '../../utils/store'
Page({
  data: {
    currentIndex: 0,
    gradeData: [],
    titleGrade: [
      { ranking: '名次' },
      { studentName: '姓名' },
      { grade: '成绩' },
      { year: '出生年' }
    ]
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad() {
    this.setData({
      gradeData: store.state.gradeList
    })
  }
})